/**
 * Copyright (C) 2013-2014 the original author or authors.
 */
package com.foreveross.bsl.system.application;

import java.util.List;

import javax.ws.rs.DELETE;
import javax.ws.rs.GET;
import javax.ws.rs.POST;
import javax.ws.rs.PUT;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import com.foreveross.bsl.system.application.vo.AccountActivatingCheckCodeVO;


/**
 * @description
 *
 * @author rening
 * @version v1.0
 *
 * @2013-6-7
 *
 */
@Path(value = "/accountCheckCodes")
public interface AccountActivatingCheckCodeApplication {

	@POST
	@Path("/")
	@Produces({MediaType.APPLICATION_XML,MediaType.APPLICATION_JSON})
	public AccountActivatingCheckCodeVO saveEntity(AccountActivatingCheckCodeVO entity);

	@PUT
	@Path("/{id}")
	@Produces({MediaType.APPLICATION_XML,MediaType.APPLICATION_JSON})
	public AccountActivatingCheckCodeVO updateEntity(@PathParam("id") String id, AccountActivatingCheckCodeVO entity);

	@DELETE
	@Path("/{id}")
	public void deleteEntity(@PathParam("id") String id);

	@GET
	@Path("/list/checkCode/{checkcode}")
	@Produces({MediaType.APPLICATION_XML,MediaType.APPLICATION_JSON})
	public List<AccountActivatingCheckCodeVO> getEntityByCheckCode(@PathParam("checkcode") String checkcode);
	
	@GET
	@Path("/list/accountId/{accountId}")
	@Produces({MediaType.APPLICATION_XML,MediaType.APPLICATION_JSON})
	public List<AccountActivatingCheckCodeVO> findRecordsByAccountId(@PathParam("accountId") String accountid);
	
	@GET
	@Path("/{id}")
	@Produces({MediaType.APPLICATION_XML,MediaType.APPLICATION_JSON})
	public AccountActivatingCheckCodeVO getEntity(@PathParam("id") String id);
	
	@GET
	@Path("/")
	@Produces({MediaType.APPLICATION_XML,MediaType.APPLICATION_JSON})
	public List<AccountActivatingCheckCodeVO> findAll();
	
	@GET
	@Path("/list/{status}")
	@Produces({MediaType.APPLICATION_XML,MediaType.APPLICATION_JSON})
	public List<AccountActivatingCheckCodeVO> findAllByStatus(@PathParam("status") String status);

	@POST
	@Path("/pages")
	@Produces({MediaType.APPLICATION_XML,MediaType.APPLICATION_JSON})
	public Page<AccountActivatingCheckCodeVO> findByPageable(Pageable pageable);
	
}
